﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace ForexService
{
    // Use a data contract as illustrated in the sample below to add composite types to service operations.
    [DataContract]
    public class ForexNews
    {
        string newstime = string.Empty;
        string newsvalue = string.Empty;

        public ForexNews(string time, string value)
        {
            newstime = time;
            newsvalue = value;
        }

        [DataMember]
        public String NewsTime
        {
            get { return newstime; }
            set { newstime = value; }
        }

        [DataMember]
        public string NewsValue
        {
            get { return newsvalue; }
            set { newsvalue = value; }
        }
    }
}
